home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C++
/
Applications
/
PICSee Dust 1.01
/
Primary Source
/
PICSDialogs.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-11-13
|
424b
|
19 lines
#include "PICSDialogs.h"
#include "DialogUtils.h"
#include "KeyUtils.h"
Boolean CheckValidNumeral(DialogPtr theDlog, short theItem, long *result) {
Str31 dlogStr;
GetIText(GetDItemHdl(theDlog, theItem), dlogStr);
if (StrNumberOnly(dlogStr, false, false)) {
StringToNum(dlogStr, result);
}
else {
SelIText(theDlog, theItem, 0, 32767);
SysBeep(10);
return(false);
}
return(true);
} // END CheckValidNumeral